// @ts-ignore

 
import { api } from '@/utils/api';

/** 新增安全-人员持证信息表数据 POST /safeEmployeeCertificates/add */
export async function safeEmployeeCertificatesAdd(
  body: BIZAPI.SafeEmployeeCertificatesCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeEmployeeCertificatesAdd(
  body: BIZAPI.SafeEmployeeCertificatesCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeEmployeeCertificatesAdd(
  body: BIZAPI.SafeEmployeeCertificatesCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeEmployeeCertificatesAdd(
  body: BIZAPI.SafeEmployeeCertificatesCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeEmployeeCertificates/add`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeEmployeeCertificates/add`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 删除安全-人员持证信息表数据 POST /safeEmployeeCertificates/delete */
export async function safeEmployeeCertificatesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeEmployeeCertificatesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeEmployeeCertificatesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeEmployeeCertificatesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeEmployeeCertificates/delete`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeEmployeeCertificates/delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-人员持证信息表数据 POST /safeEmployeeCertificates/get */
export async function safeEmployeeCertificatesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEmployeeCertificatesEntity>;

export async function safeEmployeeCertificatesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEmployeeCertificatesEntity>>;

export async function safeEmployeeCertificatesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEmployeeCertificatesEntity>;

export async function safeEmployeeCertificatesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEmployeeCertificatesEntity>(`/app/safeEmployeeCertificates/get`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultSafeEmployeeCertificatesEntity>(`/app/safeEmployeeCertificates/get`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-人员持证信息表VO数据 POST /safeEmployeeCertificates/getVo */
export async function safeEmployeeCertificatesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEmployeeCertificatesResp>;

export async function safeEmployeeCertificatesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEmployeeCertificatesResp>>;

export async function safeEmployeeCertificatesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEmployeeCertificatesResp>;

export async function safeEmployeeCertificatesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEmployeeCertificatesResp>(`/app/safeEmployeeCertificates/getVo`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultSafeEmployeeCertificatesResp>(`/app/safeEmployeeCertificates/getVo`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-人员持证信息表分页数据 POST /safeEmployeeCertificates/page */
export async function safeEmployeeCertificatesPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEmployeeCertificatesEntity>;

export async function safeEmployeeCertificatesPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEmployeeCertificatesEntity>>;

export async function safeEmployeeCertificatesPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEmployeeCertificatesEntity>;

export async function safeEmployeeCertificatesPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEmployeeCertificatesEntity>(
      `/app/safeEmployeeCertificates/page`,
      {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json'
        },
        data: body,
        ...(options || {}),
        tupleResponse: true
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEmployeeCertificatesEntity>(
    `/app/safeEmployeeCertificates/page`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  );
}

/** 统计柱状图 POST /safeEmployeeCertificates/statistics/columnar */
export async function safeEmployeeCertificatesStatisticsColumnar(
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultListMapStringObject>;

export async function safeEmployeeCertificatesStatisticsColumnar(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultListMapStringObject>>;

export async function safeEmployeeCertificatesStatisticsColumnar(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultListMapStringObject>;

export async function safeEmployeeCertificatesStatisticsColumnar(
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultListMapStringObject>(
      `/app/safeEmployeeCertificates/statistics/columnar`,
      {
        method: 'POST',
        ...(options || {}),
        tupleResponse: true
      }
    );
  }

  return api<BIZAPI.IResultListMapStringObject>(
    `/app/safeEmployeeCertificates/statistics/columnar`,
    {
      method: 'POST',
      ...(options || {})
    }
  );
}

/** 更新安全-人员持证信息表数据 POST /safeEmployeeCertificates/update */
export async function safeEmployeeCertificatesUpdate(
  body: BIZAPI.SafeEmployeeCertificatesUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeEmployeeCertificatesUpdate(
  body: BIZAPI.SafeEmployeeCertificatesUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeEmployeeCertificatesUpdate(
  body: BIZAPI.SafeEmployeeCertificatesUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeEmployeeCertificatesUpdate(
  body: BIZAPI.SafeEmployeeCertificatesUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeEmployeeCertificates/update`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeEmployeeCertificates/update`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取持证人员列表 POST /safeEmployeeCertificates/userList */
export async function safeEmployeeCertificatesUserList(
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultListString>;

export async function safeEmployeeCertificatesUserList(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultListString>>;

export async function safeEmployeeCertificatesUserList(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultListString>;

export async function safeEmployeeCertificatesUserList(options?: ArgumentsType<typeof api>[1]) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultListString>(`/app/safeEmployeeCertificates/userList`, {
      method: 'POST',
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultListString>(`/app/safeEmployeeCertificates/userList`, {
    method: 'POST',
    ...(options || {})
  });
}

/** 获取安全-人员持证信息表VO分页数据 POST /safeEmployeeCertificates/voPage */
export async function safeEmployeeCertificatesVoPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEmployeeCertificatesResp>;

export async function safeEmployeeCertificatesVoPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEmployeeCertificatesResp>>;

export async function safeEmployeeCertificatesVoPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEmployeeCertificatesResp>;

export async function safeEmployeeCertificatesVoPage(
  body: BIZAPI.SafeEmployeeCertificatesQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEmployeeCertificatesResp>(
      `/app/safeEmployeeCertificates/voPage`,
      {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json'
        },
        data: body,
        ...(options || {}),
        tupleResponse: true
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEmployeeCertificatesResp>(
    `/app/safeEmployeeCertificates/voPage`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  );
}
